<!---
	Name         : views/layout.amin.cfm
	Author       : Raymond Camden 
	Created      : 11/05/05
	Last Updated : 11/05/05
	History      : Used tables to help make it a bit more stable (11/5/05)
--->

<cfset page = viewState.getValue("page")>
<cfset appTitle = viewState.getValue("appTitle")>
<cfset title = viewState.getValue("title", "#page.getPath()#")>
<cfset webpath = viewState.getValue("webpath")>
<cfset event = viewState.getValue("event")>

<cfoutput>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>#appTitle# | #title#</title>
<link rel="stylesheet" href="#webpath#/stylesheets/blueheaven.css" type="text/css" />
</head>

<body>
<div class="header" style="height:76px;"><a href="#webpath#/index.cfm">#appTitle#</a></div>
<table width="100%">
<tr valign="top">
	<td >
</cfoutput>

<cfif viewCollection.exists("body")>
	<cfoutput>#viewCollection.getView("body")#</cfoutput>
</cfif>

<cfoutput>
	</td>
	<td id="nav">
	<div id="navcontainer">
     
	<b>Navigation</b>
     <ul id="navlinks">
	 <li><a href="#webpath#/index.cfm">home</a></li>
	 <cfif event is not "search">
		 <li><a href="#webpath#/index.cfm?path=#urlEncodedFormat(page.getPath())#&event=edit">edit this page</a></li>
		 <li><a href="#webpath#/index.cfm?path=#urlEncodedFormat(page.getPath())#&event=pagehistory">page history</a></li>
	 </cfif>
	 <li><a href="#webpath#/index.cfm?event=showAllPages">page index</a>
	 <li><a href="#webpath#/index.cfm?event=search">search</a>
	 <li><a href="#webpath#/index.cfm?event=edit&new=true">add page</a>
	 </ul>
	<cfif viewCollection.exists("subpagelist")>
		<cfoutput><br />#viewCollection.getView("subpagelist")#</cfoutput>
	</cfif>	 
     <br/><br/>
	 <b>Credits</b>
     <div id="copyright">
		#appTitle# created by <a href="http://ray.camdenfamily.com">Raymond Camden</a><br />
		<br />
		Design by 
		<a href="http://www.ki4bbo.org">Josh Powerl</a>
     </div>
	</div>
	</td>
</tr>
</table>
</body>
</html>
</cfoutput>
